<!--
 * @Author: your name
 * @Date: 2020-08-12 15:10:33
 * @LastEditTime: 2020-08-13 15:31:08
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \devopsh:\project\QMangolia-web\src\views\code\verify\testStage.vue
-->
<template>
  <div>
    <q-table :data="data" :columns="columns" :option="option"></q-table>
  </div>
</template>

<script>
export default {
  components: {
    QTable: () => import('@/components/QTable')
  },
  data() {
    return {
      data: [{
        sn: '9000001',
        title: '获取信号塔高度',
        lastExecuteTime: 1597303823625,
        result: 1,
        executions: 14,
        bugs: 12,
        executor: 'zhangsan'
      }, {
        sn: '9000001',
        title: '获取信号塔高度',
        lastExecuteTime: 1597303823625,
        result: 1,
        executions: 14,
        bugs: 12,
        executor: 'zhangsan'
      }, {
        sn: '9000001',
        title: '获取信号塔高度',
        lastExecuteTime: 1597303823625,
        result: 1,
        executions: 14,
        bugs: 12,
        executor: 'zhangsan'
      }, {
        sn: '9000001',
        title: '获取信号塔高度',
        lastExecuteTime: 1597303823625,
        result: 1,
        executions: 14,
        bugs: 12,
        executor: 'zhangsan'
      }, {
        sn: '9000001',
        title: '获取信号塔高度',
        lastExecuteTime: 1597303823625,
        result: 1,
        executions: 14,
        bugs: 12,
        executor: 'zhangsan'
      }, {
        sn: '9000001',
        title: '获取信号塔高度',
        lastExecuteTime: 1597303823625,
        result: 1,
        executions: 14,
        bugs: 12,
        executor: 'zhangsan'
      }],
      currentPage: 4,
      userList: [{
        id: 'liuyi',
        name: '刘一',
        avatar: 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1019725746,2053024139&fm=26&gp=0.jpg'
      }, {
        id: 'chener',
        name: '陈二',
        avatar: 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1019725746,2053024139&fm=26&gp=0.jpg'
      }, {
        id: 'zhangsan',
        name: '张三',
        avatar: 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1019725746,2053024139&fm=26&gp=0.jpg'
      }, {
        id: 'lisi',
        name: '李四',
        avatar: 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1019725746,2053024139&fm=26&gp=0.jpg'
      }, {
        id: 'wangwu',
        name: '王五',
        avatar: 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1019725746,2053024139&fm=26&gp=0.jpg'
      }, {
        id: 'zhaoliu',
        name: '赵六',
        avatar: 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1019725746,2053024139&fm=26&gp=0.jpg'
      }, {
        id: 'sunqi',
        name: '孙七',
        avatar: 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1019725746,2053024139&fm=26&gp=0.jpg'
      }, {
        id: 'zhouba',
        name: '周八',
        avatar: 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1019725746,2053024139&fm=26&gp=0.jpg'
      }, {
        id: 'wujiu',
        name: '吴九',
        avatar: 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1019725746,2053024139&fm=26&gp=0.jpg'
      }, {
        id: 'zhengshi',
        name: '郑十',
        avatar: 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1019725746,2053024139&fm=26&gp=0.jpg'
      }],
      columns: [{
        prop: 'sn',
        label: '编号'
      }, {
        prop: 'title',
        label: '标题'
      }, {
        prop: 'lastExecuteTime',
        label: '最后执行时间'
      }, {
        prop: 'result',
        label: '结果'
      }, {
        prop: 'executions',
        label: '执行次数'
      }, {
        prop: 'bugs',
        label: '产生BUG'
      }, {
        prop: 'executor',
        label: '指派',
        type: 'user',
        disabled: false
      }],
      option: {
        pageination: {
          layout: 'total, sizes, prev, pager, next, jumper',
          pageSizes: [10, 15, 20, 25, 30]
        }
      }
    }
  }
}
</script>